package com.zikao.question.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zikao.common.utils.PageUtils;
import com.zikao.question.entity.QuestionEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author likaisheng
 * @email 1805318928@qq.com
 * @date 2021-03-03 20:46:00
 */
public interface QuestionService extends IService<QuestionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<QuestionEntity> selectByMap(Map<String, Object> params);

    void saveQuestion(QuestionEntity question);

    List<QuestionEntity> selectList(QueryWrapper wrapper);

    /**
     * 支持动态查询的分页
     * @param params
     * @param queryWrapper
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Wrapper queryWrapper);

    List<QuestionEntity> selectBatchIds(List<Long> questionIds);
}

